package com.changgou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

/**
 * @Description TODO
 * @ClassName SearchApplication
 * @Author YPK
 * @Date 18:54 2019/11/15
 * @Version 2.1
 **/

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableEurekaClient // 开启Eureka客户端
@EnableFeignClients(basePackages = {"com.changgou.goods.feign"})
@EnableElasticsearchRepositories(basePackages = {"com.changgou.search.dao"})
public class SearchApplication18085 {
    public static void main(String[] args) {
        //避免冲突
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(SearchApplication18085.class, args);
    }
}
